package com.quxiu.system.service;

import com.quxiu.common.core.constant.CacheConstants;
import com.quxiu.common.core.constant.Constants;
import com.quxiu.common.core.constant.SecurityConstants;
import com.quxiu.common.core.constant.UserConstants;
import com.quxiu.common.core.domain.R;
import com.quxiu.common.core.enums.UserStatus;
import com.quxiu.common.core.exception.ServiceException;
import com.quxiu.common.core.text.Convert;
import com.quxiu.common.core.utils.StringUtils;
import com.quxiu.common.core.utils.ip.IpUtils;
import com.quxiu.common.redis.service.RedisService;
import com.quxiu.common.security.utils.SecurityUtils;
import com.quxiu.system.api.RemoteUserService;
import com.quxiu.system.api.domain.SysUser;
import com.quxiu.system.api.model.LoginUser;
import com.quxiu.system.service.impl.SysPasswordService;
import com.quxiu.system.service.impl.SysRecordLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 登录校验方法
 *
 * @author quxiu
 */
public interface ISysLoginService {
    /**
     * 登录
     */
    LoginUser login(String username, String password);

    void logout(String loginName);
}
